Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[border_css_util] implement css helper class #10057

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scherler
Copy link
Contributor

@scherler scherler commented Dec 13, 2024

This PR will provide CSS helper classes to add borders. It is similar to https://weekly.ci.jenkins.io/design-library/Spacing/ but takes more the way https://tailwindcss.com/docs/border-width works e.g. jenkins-border-t-3 will create a top border of 3 px

follow up pr will be created for https://weekly.ci.jenkins.io/design-library

Testing done

After compile you can change the source code to

    <div class="jenkins-border-t-4">
      Hello border
    </div>
    <div class="jenkins-border-dashed jenkins-border-b jenkins-border-t jenkins-border-blue">
      Hello border
    </div>
    <div class="jenkins-border jenkins-border-green">
      Hello border
    </div>

image

Proposed changelog entries

CSS helper classes to add borders in the spirit of the jenkins-!-spacing

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

@mention

Before the changes are marked as ready-for-merge:

Maintainer checklist

@alecharp alecharp added the web-ui The PR includes WebUI changes which may need special expertise label Dec 13, 2024
@krisstern krisstern requested a review from janfaracik December 13, 2024 16:33
@janfaracik
Copy link
Contributor

janfaracik commented Dec 13, 2024

Hey, thanks!

Is there a specific use case for these utils? Curious, wondering if it should be like the colours where we have a base palette but then a semantic set on top of them with specific meaning.

@scherler
Copy link
Contributor Author

Mainly I was looking into this because of yui-button has borders but jenkins-button does not, some of our designs need those borders. Regarding the semantics I can implement that

@janfaracik
Copy link
Contributor

Mainly I was looking into this because of yui-button has borders but jenkins-button does not, some of our designs need those borders. Regarding the semantics I can implement that

Ah gotcha. Is there any chance you could share a pic of what those buttons look like? Might be worth making a new type of button rather than a util library if its limited to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-ui The PR includes WebUI changes which may need special expertise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants